<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>修改寝室信息</title>
</head>
<body>
	<h1>修改寝室信息</h1>
	<form action="updateDormitory.do?method=update" name="dormitoryDTO" method="post">
		<input type="hidden" name="id" value="${dormitory.id }"/>
		<input type="hidden" name="building" value="${dormitory.building.id }"/>
		<label>寝室名称<input type="text" name="name" value="${dormitory.name }"/></label>
		<label>寝室介绍<input type="text" name="description" value="${dormitory.description }"/></label>
		<label>寝室电话<input type="text" name="telephone" value="${dormitory.telephone }"/></label>
		<label>寝室可住人数<input type="text" name="capacity" value="${dormitory.capacity }"/></label>
		<input type="submit" value="提交"/>
	</form>
</body>
</html>